//
//  Test37.cpp
//  CPPTest
//
//  Created by you5 Yi on 2021/9/28.
//

#include "Test37.hpp"
#include <iostream>
using namespace std;
void swap(int &a, int &b)
{
    a=a+b;
    b=a-b;
    a=a-b;
}

void test37()
{
    int a = 5, b = 3;
    cout<<"a = "<<a<<",b = "<<b<<endl;
//    swap(&a,&b);
    swap(a,b);
    cout<<"a = "<<a<<",b = "<<b<<endl;
}
